package yt.demo.appcommontools.utils.files.storage;

import lombok.Data;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import yt.demo.appcommontools.utils.dto.FileInfoDTO;

@Service
@Data
public class AliyunStorageService implements FileStorageService {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

    @Override
    public FileInfoDTO upload(MultipartFile file) {
        FileInfoDTO fileInfo = new FileInfoDTO();
        return fileInfo;
    }

    @Override
    public FileInfoDTO uploadBase64(String base64Data) {
        FileInfoDTO fileInfo = new FileInfoDTO();
        return fileInfo;
    }

    @Override
    public boolean delete(String fileUrl) {
        return false;
    }

    @Override
    public String getDomainName() {
        return "";
    }

}
